package com.xxxx.spring.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Comment2 {

    @EventListener
    public void receive(MessageEvent event){
        log.info("我收到的 : " + event);
    }

}
